<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>2.5.- Linux Benchmarks</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Boost.Sort">
<link rel="up" href="../single_thread.html" title="2.- Single Thread Algorithms">
<link rel="prev" href="flat_stable_sort/flat_stable_sort_programming.html" title="Programming">
<link rel="next" href="linux_single/complex_benchmarks.html" title="Complex (Several Types)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="flat_stable_sort/flat_stable_sort_programming.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../single_thread.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="linux_single/complex_benchmarks.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="sort.single_thread.linux_single"></a><a class="link" href="linux_single.html" title="2.5.- Linux Benchmarks">2.5.- Linux Benchmarks</a>
</h3></div></div></div>
<p>
        This library contains a benchmark folder with programs to measure the speed
        of the algorithms on your machine and operating system. These are short benchmarks
        to test speed with different kinds of data ( random, sorted, sorted plus
        unsorted append at end ...)
      </p>
<p>
        This was run on a Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, with 6 cores
        and 2 threads by core, and 15M of cache
      </p>
<p>
        The results obtained with GCC 6.3 on Linux, in the benchmark_numbers with
        integers are:
      </p>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="sort.single_thread.linux_single.near_sorted"></a><a class="link" href="linux_single.html#sort.single_thread.linux_single.near_sorted" title="Near Sorted Data">Near Sorted
        Data</a>
</h4></div></div></div>
<div class="blockquote"><blockquote class="blockquote">
<h5>
<a name="sort.single_thread.linux_single.near_sorted.h0"></a>
            <span class="phrase"><a name="sort.single_thread.linux_single.near_sorted.near_sorted_data_with_100_000_00"></a></span><a class="link" href="linux_single.html#sort.single_thread.linux_single.near_sorted.near_sorted_data_with_100_000_00"><span class="underline">Near Sorted Data With 100 000 000 64 bits Integers</span></a>
          </h5>
<p>
            benchmark/single/benchmark_numbers.cpp : This benchmark shows the results
            obtained with several kind of integers numbers (random, and near sorted).
          </p>
<p>
            The benchmarks with strings and objects of different sizes are not showed
            here, but you can obtain running the benchmark_strings.cpp ans benchmarks_objects.cpp
            programs.
          </p>
<p>
            <span class="bold"><strong>
<pre class="programlisting">                            |           |           |           |           |           |           |
                            |           |           |std::      |           |flat_      |           |
                            | std::sort | pdqsort   |stable_sort| spinsort  |stable_sort|spreadsort |
----------------------------+-----------+-----------+-----------+-----------+-----------+-----------+
random                      |   8.21    |   3.99    |   8.62    |   9.73    |  10.80    |   4.26    |
                            |           |           |           |           |           |           |
sorted                      |   1.84    |   0.13    |   4.88    |   0.06    |   0.07    |   0.06    |
sorted + 0.1% end           |   6.41    |   2.91    |   4.92    |   0.41    |   0.36    |   3.16    |
sorted +   1% end           |  14.15    |   3.39    |   4.97    |   0.55    |   0.49    |   3.65    |
sorted +  10% end           |   6.72    |   4.15    |   5.73    |   1.32    |   1.40    |   4.39    |
                            |           |           |           |           |           |           |
sorted + 0.1% middle        |   4.41    |   3.31    |   6.58    |   1.89    |   2.61    |   3.29    |
sorted +   1% middle        |   4.39    |   3.62    |   7.06    |   2.12    |   3.07    |   3.80    |
sorted +  10% middle        |   6.35    |   4.71    |   9.56    |   4.02    |   5.49    |   4.99    |
                            |           |           |           |           |           |           |
reverse sorted              |   1.36    |   0.26    |   5.12    |   0.13    |   0.14    |   1.87    |
reverse sorted + 0.1% end   |   7.57    |   2.92    |   5.22    |   0.52    |   0.42    |   2.83    |
reverse sorted +   1% end   |   4.99    |   3.33    |   5.29    |   0.66    |   0.55    |   3.45    |
reverse sorted +  10% end   |   4.62    |   4.16    |   6.03    |   1.45    |   1.44    |   4.35    |
                            |           |           |           |           |           |           |
reverse sorted + 0.1% middle|   4.38    |   3.29    |   6.52    |   1.89    |   2.54    |   3.28    |
reverse sorted +   1% middle|   4.43    |   3.65    |   7.09    |   2.12    |   3.09    |   3.81    |
reverse sorted +  10% middle|   6.42    |   4.70    |   9.46    |   4.02    |   5.53    |   5.00    |
                            |           |           |           |           |           |           |
</pre>
            </strong></span>
          </p>
</blockquote></div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2014-2017 Steven
      Ross, Francisco Tapia, Orson Peters<p>
        Distributed under the <a href="http://boost.org/LICENSE_1_0.txt" target="_top">Boost
        Software License, Version 1.0</a>.
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="flat_stable_sort/flat_stable_sort_programming.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../single_thread.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="linux_single/complex_benchmarks.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
